package kr.co.graviti.adm.auth.action;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import kr.co.graviti.common.action.BaseFuncAction;

public class AdmLoginAction extends BaseFuncAction{
	
	private static final Logger _log = Logger.getLogger(AdmAuthAction.class);
	/** 관리자 로그인 언어 구분 
	 * @param mapping
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception
	 */
	public ActionForward execute(ActionMapping mapping,
			ActionForm form,
			HttpServletRequest request,HttpServletResponse response)
	        throws Exception {
		
		HashMap infoMap = new HashMap();
		infoMap.put("eng", ENG);
		infoMap.put("rus", RUS);
		infoMap.put("spn", SPN);
		
		_log.info("==========================");
		System.out.println("----------------------");
		request.setAttribute("infoMap", infoMap);
		return mapping.findForward("success");
	}
}
